@import "../../theme/var.scss";
.wrapper {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  .none {
    width: 100%;
    text-align: center;
    font-size: 22px;
    padding: 15px 0;
    background-color: var(--bg-second);
    margin-top: 15px;
  }
  .item {
    width: 100%;
    box-shadow: var(--box-shadow);
    border-radius: var(--raduis);
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--bg-second);
    a {
      width: 100%;
      display: flex;
      flex-direction: row;
      padding: 10px;
      .cover {
        width: 220px;
        height: 110px;
        margin-bottom: 15px;
        margin-right: 15px;
        overflow: hidden;
        img {
          transition: transform 0.2s;
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: var(--raduis);
        }
      }
      .info {
        width: 100%;
        .title {
          transition: color 0.2s;
          color: var(--main-text-color);
          font-size: 20px;
          font-weight: bold;
          width: 100%;
          margin-bottom: 20px;
        }
        .dec {
          color: var(--second-text-color);
          width: 100%;
        }
        .cAt {
          width: 100%;
          margin-top: 20px;
          display: flex;
          justify-content: space-between;
          color: var(--second-text-color);
        }
      }
      &:hover {
        .cover {
          img {
            transform: scale(1.1);
          }
        }
        .info {
          .title {
            color: var(--primary-color) !important;
          }
        }
      }
    }
  }
  &.asCard {
    .item {
      width: 48%;
      &:nth-child(even) {
        margin-left: 2%;
      }
      a {
        flex-direction: column;
        .cover {
          width: 100%;
        }
      }
    }
  }
}

@media (max-width: 769px) {
  .wrapper {
    &.asCard {
      .item {
        margin-left: 0 !important;
        width: 100%;
      }
    }
    .item {
      a {
        flex-direction: column;
        .cover {
          width: 100%;
        }
      }
    }
  }
}

@media (max-width: 962px) and (min-width: 760px) {
  .wrapper {
    .item {
      a {
        flex-direction: column;
        .cover {
          width: 100%;
        }
      }
    }
  }
}
